package com.earl.eatbao.domain.eatbao;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.earl.eatbao.commons.domain.AbstractAuditingEntity;

/**
 * 订单评论
 * @author Administrator
 * @version 1.0
 * @updated 22-十一月-2016 20:37:06
 */
@Entity
public class Comment extends AbstractAuditingEntity<Long> implements Serializable {

	/**
	 * 默认页码数
	 */
    public static final Integer DEFAULT_SIZE = 10;
    /**
	 * 内容
	 */
	private String content;
	/**
	 * 订单id
	 */
	private long orderId;
	/**
	 * 发送消息的用户
	 */
	private long userId;
	/**
	 * 接收消息的用户
	 */
	private long businessId;

    /**
     * Getter for property 'content'.
     *
     * @return Value for property 'content'.
     */
    public String getContent() {
        return content;
    }

    /**
     * Setter for property 'content'.
     *
     * @param content Value to set for property 'content'.
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * Getter for property 'orderId'.
     *
     * @return Value for property 'orderId'.
     */
    public long getOrderId() {
        return orderId;
    }

    /**
     * Setter for property 'orderId'.
     *
     * @param orderId Value to set for property 'orderId'.
     */
    public void setOrderId(long orderId) {
        this.orderId = orderId;
    }

    /**
     * Getter for property 'userId'.
     *
     * @return Value for property 'userId'.
     */
    public long getUserId() {
        return userId;
    }

    /**
     * Setter for property 'userId'.
     *
     * @param userId Value to set for property 'userId'.
     */
    public void setUserId(long userId) {
        this.userId = userId;
    }

    /**
     * Getter for property 'businessId'.
     *
     * @return Value for property 'businessId'.
     */
    public long getBusinessId() {
        return businessId;
    }

    /**
     * Setter for property 'businessId'.
     *
     * @param businessId Value to set for property 'businessId'.
     */
    public void setBusinessId(long businessId) {
        this.businessId = businessId;
    }

	@Override
	public String toString() {
		return "Comment{" +
				"content='" + content + '\'' +
				", orderId=" + orderId +
				", userId=" + userId +
				", businessId=" + businessId +
				'}';
	}
}